﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;

namespace MvcMovie
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the class name "DogService" in code, svc and config file together.
    // NOTE: In order to launch WCF Test Client for testing this service, please select DogService.svc or DogService.svc.cs at the Solution Explorer and start debugging.
    public class DogService : IDogService
    {
        public int CalculateDogAge(int humanAge)
        {
            return humanAge * 7;
        }

        public string WhatDidTheDogSay()
        {
            return "wooFwoofWoofwoOf";
        }

        public Movie GetMovie(int id)
        {
            MvcMovie.Models.MovieDbContext db = new Models.MovieDbContext();
            return db.Movies.Find(id);
        }
    }
}
